PATHMac OS 8 and 9 Developer Documentation > Networking and Communications > URL Access Manager >

Transferring Files With the URL Access Manager


HTTP and HTTPS Properties

If you are working with an HTTP or HTTPS URL, you can use the following constants to specify HTTP-specific properties:

const char* kURLHTTPRequestMethod   = "URLHTTPRequestMethod";
const char* kURLHTTPRequestHeader   = "URLHTTPRequestHeader";
const char* kURLHTTPRequestBody     = "URLHTTPRequestBody";
const char* kURLHTTPRespHeader      = "URLHTTPRespHeader";
const char* kURLHTTPUserAgent       = "URLHTTPUserAgent";

Constant Descriptions

kURLHTTPRequestMethod
The HTTP method to be used in the request. You should call URLGetPropertySize to retrieve the size of the request method before you retrieve the property itself. If you are posting a form, you must set this property.
kURLHTTPRequestHeader
The HTTP request header. You should call URLGetPropertySize to retrieve the size of the request header before you retrieve the property itself. You may set this property to contain all headers needed for the request. If you are posting a form and have set the kURLHTTPRequestMethod and kURLHTTPRequestBody properties, you do not need to set this property.
kURLHTTPRequestBody
The HTTP request body to be provided in the request. You should call URLGetPropertySize to retrieve the size of the request body before you retrieve the property itself. If you set this property but not the kURLHTTPHeader property, a body-length header is automatically added to the request. If you are posting a form, you must set this property.
kURLHTTPRespHeader
The HTTP response header. You should call URLGetPropertySize to retrieve the size of the response header before you retrieve the property itself.
kURLHTTPUserAgent
The HTTP user agent string that is embedded in HTTP requests. By default, the URL Access Manager sets the user agent string to "URL Access 1.0 (Macintosh ; PPC)". You can set this property.

© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)